package com.learning.platform.dto;

import com.learning.platform.entity.ExamQuestion;

import java.math.BigDecimal;

public class ExamQuestionResponse {
    private Long id;
    private Long examId;
    private Long questionId;
    private Integer orderNo;
    private BigDecimal points;
    private QuestionBankResponse question; // 关联的题目信息
    
    // Constructors
    public ExamQuestionResponse() {}
    
    public ExamQuestionResponse(ExamQuestion examQuestion) {
        this.id = examQuestion.getId();
        this.examId = examQuestion.getExamId();
        this.questionId = examQuestion.getQuestionId();
        this.orderNo = examQuestion.getOrderNo();
        this.points = examQuestion.getPoints();
    }
    
    // Getters and Setters
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getExamId() {
        return examId;
    }
    
    public void setExamId(Long examId) {
        this.examId = examId;
    }
    
    public Long getQuestionId() {
        return questionId;
    }
    
    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }
    
    public Integer getOrderNo() {
        return orderNo;
    }
    
    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }
    
    public BigDecimal getPoints() {
        return points;
    }
    
    public void setPoints(BigDecimal points) {
        this.points = points;
    }
    
    public QuestionBankResponse getQuestion() {
        return question;
    }
    
    public void setQuestion(QuestionBankResponse question) {
        this.question = question;
    }
}
